<?php
defined('IN_TS') or die('Access Denied.');

function msg_init(){
   echo '
   <script src="'.SITE_URL.'/plugins/pubs/Newmessage/common.js" type="text/javascript"></script>
   <style>.layer_massage_box{background:url("'.SITE_URL.'/plugins/pubs/Newmessage/layer_bg1.png") repeat scroll 0 0 transparent;border-radius:3px 3px 3px 3px;border:#797979 solid 1px;padding:10px;position:absolute;right:240px;top:60px;width:180px;}
 .layer_massage_box .del{position:absolute;right:0;top:0}
 .layer_massage_box li{line-height:23px}
 .del{width: 17px;height: 17px;background-position: 0 -85px;overflow: hidden;margin: 3px 5px 0 0;}
</style>
<div id="message_list_container" class="layer_massage_box" style="visibility:hidden;">

    	<ul class="message_list_container"><li><span id="count_message"></span>条系统通知，<a href="'.SITE_URL.tsUrl('message','my').'" target="" class="message_list_notify">查看消息</a></li></ul>

        <a href="javascript:void(0)" onclick="$(\'#message_list_container\').remove();" class="del">x</a>

    </div>
 <script>

$("#message_list_container").smartFloat();

</script>';
}

addAction('pub_header_top','msg_init');